package com.ylyq.ylxx.controller;


import com.ylyq.ylxx.entity.YlyqCoreAge;
import com.ylyq.ylxx.model.ResponseData;
import com.ylyq.ylxx.service.IYlyqCoreAgeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author xiaweichao
 * @since 2020-07-21
 */
@RestController
@RequestMapping("/coreAge")
@Api(description = "年龄标签相关接口")
public class YlyqCoreAgeController {
    @Autowired
    private IYlyqCoreAgeService iYlyqCoreAgeService;

    @GetMapping("/getAgeTag")
    @ApiOperation(value = "获取年龄标签")
    public ResponseData refreshCore() {
        return new ResponseData(ResponseData.Result.SUCCESS,iYlyqCoreAgeService.list());
    }

}
